package org.weso.desempleo.model;

import java.util.HashMap;

public class Council {
	
	private String label;
	private HashMap<String, String> unemployments;
	
	public Council(String label) {
		this.label = label;
		unemployments = new HashMap<String, String>(3);
	}
	
	public void add(String date, String unemployment) {
		unemployments.put(date, unemployment);
	}
	
	public String getLabel() {
		return label;
	}
	
	public boolean equals(Object o) {
		if(o instanceof Council) {
			if(((Council) o).getLabel().equals(label))
				return true;
			else
				return false;
		} else
			return false;
	}
	
	public String getUnemployment(String period) {
		return unemployments.get(period);
	}

}
